<template>
  <div class="hello">
    <h1>Cnode</h1>
    <div class="search">
      <input type="text" />
    </div>
    <nav>
      <div v-for="(v, i) in nav" :key="i">{{ v }}</div>
    </nav>
  </div>
</template>
<script>
export default {
  name: "appHeader",
  props: [],
  data() {
    return {
      nav: ["首页", "新手入门", "API", "关于", "注册", "登录"],
    };
  },
  mounted() {},
  methods: {},
  components: {},
};
</script>

<style lang="scss">
.hello {
  width: 100%;
  background-color: rgb(78, 78, 78);
  font-size: 1rem;
  margin-top: 1.25rem;
  color: #fff;
  h1 {
    text-align: center;
  }
  nav {
    width: 80%;
    height: 100px;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    div {
      width: 70px;
    }
  }
  .search {
    width: 100%;
    height: 50px;
    input {
      display: block;
      margin: auto;
      width: 70%;
      height: 30px;
      border-radius: 14px;
      background-color: rgb(150, 149, 149);
      padding-left: 10px;
    }
  }
}
</style>
